package top.codecrab.eblog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author codecrab
 * @since 2022-03-18
 */
@Getter
@Setter
@TableName("m_sign_log")
public class SignLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 签到的用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 日志对应的签到记录
     */
    @TableField("sign_id")
    private Long signId;

    /**
     * 签到所得的积分
     */
    @TableField("point")
    private Integer point;

    /**
     * 签到时的IP
     */
    @TableField("ip")
    private String ip;

    /**
     * IP所属的地区
     */
    @TableField("ip_address")
    private String ipAddress;

}
